From 86599694eedc7024dfdc69313d61881824a47e0a Mon Sep 17 00:00:00 2001 From: Vladislav Grigoryev Date: Tue, 28 Sep 2021 06:56:35 +0300 Subject: [PATCH] luci-mod-network: support dhcp.dnsmasq.ipset Allow to modify the ipset option in the dhcp.dnsmasq config. This makes possible to populate IP sets with dnsmasq. Signed-off-by: Vladislav Grigoryev --- .../htdocs/luci-static/resources/view/network/dhcp.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index b49040b6a0..d7f6910787 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -289,6 +289,12 @@ return view.extend({ o.optional = true; o.placeholder = '/router.local/192.168.0.1'; + o = s.taboption('general', form.DynamicList, 'ipset', + _('IP sets'), + _('List of IP sets to populate with the specified domain IPs.')); + o.optional = true; + o.placeholder = '/example.org/ipset,ipset6'; + o = s.taboption('general', form.Flag, 'rebind_protection', _('Rebind protection'), _('Discard upstream RFC1918 responses.')); -- 2.30.2